export const spanColumns = [
  {
    title: 'Span',
    dataIndex: 'endpointName',
    key: 'endpointName',
    width: 250,
    ellipsis: true,
  },
  {
    title: '开始时间',
    dataIndex: 'startStr',
    key: 'startStr',
    width: 180,
  },
  {
    title: '持续时间（ms）',
    dataIndex: 'duration',
    key: 'duration',
  },
  {
    title: '持续时间占比',
    dataIndex: 'durationRate',
    key: 'durationRate',
  },
  {
    title: 'API类型',
    dataIndex: 'component',
    key: 'component',
    ellipsis: true,
  },
  {
    title: '服务名',
    dataIndex: 'serviceCode',
    key: 'serviceCode',
    ellipsis: true,
  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'action',
  },
];

export const threadColumns = [
  {
    title: '线程堆栈',
    dataIndex: 'codeSignature',
    key: 'codeSignature',
    ellipsis: true,
    width: 600,
  },
  {
    title: '持续时间（ms）',
    dataIndex: 'duration',
    key: 'duration',
  },
  {
    title: '自持续时间（ms）',
    dataIndex: 'durationChildExcluded',
    key: 'durationChildExcluded',
  },
  {
    title: 'dump数量',
    dataIndex: 'count',
    key: 'count',
  },
];
